home *** CD-ROM | disk | FTP | other *** search
/ Chip 2005 March / CMCD0305.ISO / Software / Freeware / Programare / nvu / nvu-0.80-win32-installer-full.exe / {app} / chrome / cascades.jar / content / cascades / compatibility.js < prev    next >
Text File  |  2002-11-25  |  12KB  |  280 lines

  1. /* ***** BEGIN LICENSE BLOCK *****
  2.  * Version: MPL 1.1/GPL 2.0/LGPL 2.1
  3.  *
  4.  * The contents of this file are subject to the Mozilla Public License Version
  5.  * 1.1 (the "License"); you may not use this file except in compliance with
  6.  * the License. You may obtain a copy of the License at
  7.  * http://www.mozilla.org/MPL/
  8.  *
  9.  * Software distributed under the License is distributed on an "AS IS" basis,
  10.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  11.  * for the specific language governing rights and limitations under the
  12.  * License.
  13.  *
  14.  * The Original Code is CaScadeS, a stylesheet editor for Composer.
  15.  *
  16.  * The Initial Developer of the Original Code is
  17.  * Daniel Glazman.
  18.  * Portions created by the Initial Developer are Copyright (C) 2002
  19.  * the Initial Developer. All Rights Reserved.
  20.  *
  21.  * Contributor(s):
  22.  *   Original author: Daniel Glazman <daniel@glazman.org>
  23.  *
  24.  * Alternatively, the contents of this file may be used under the terms of
  25.  * either the GNU General Public License Version 2 or later (the "GPL"), or
  26.  * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
  27.  * in which case the provisions of the GPL or the LGPL are applicable instead
  28.  * of those above. If you wish to allow use of your version of this file only
  29.  * under the terms of either the GPL or the LGPL, and not to allow others to
  30.  * use your version of this file under the terms of the MPL, indicate your
  31.  * decision by deleting the provisions above and replace them with the notice
  32.  * and other provisions required by the GPL or the LGPL. If you do not delete
  33.  * the provisions above, a recipient may use your version of this file under
  34.  * the terms of any one of the MPL, the GPL or the LGPL.
  35.  *
  36.  * ***** END LICENSE BLOCK ***** */
  37.  
  38. const kclCSS1  = 0;
  39. const kclCSS2  = 1;
  40. const kclCSS3  = 2;
  41.  
  42. const kbNS4    = 3;
  43. const kbGECKO  = 4;
  44. const kbWINIE4 = 5;
  45. const kbWINIE5 = 6;
  46. const kbOPERA6 = 7;
  47.  
  48. const kCompatibilities = {
  49.   CSS1:   kclCSS1    ,
  50.   CSS2:   kclCSS2    ,
  51.   CSS3:   kclCSS3    ,
  52.   NS4:    kbNS4      ,
  53.   GECKO:  kbGECKO    ,
  54.   WINIE4: kbWINIE4   ,
  55.   WINIE5: kbWINIE5   ,
  56.   OPERA6: kbOPERA6   
  57. };
  58.  
  59. const kButtonCompatibilityArray = [
  60.   "atimportButton",                    "11",
  61.   "atmediaButton",                     "10",
  62.  
  63.   "fontFamilyRadiogroup",              "11",
  64.   "noFontFamilyRadio",                 "11",
  65.   "predefFontFamilyRadio",             "11",
  66.   "predefFontFamilyMenulist",          "11",
  67.   "sansSerifFontFamilyMenuitem",       "11",
  68.   "serifFontFamilyMenuitem",           "11",
  69.   "monospaceFontFamilyMenuitem",       "11",
  70.   "customFontFamilyRadio",             "11",
  71.   "customFontFamilyInput",             "11",
  72.   "fontSizeInput",                     "11",
  73.   "lineHeightInput",                   "11",
  74.   "textColorInput",                    "11",
  75.   "colorButton",                       "11",
  76.   "textCW",                            "11",
  77.   "fontWeightMenulist",                "11",
  78.   "unspecifiedFontWeightMenu",         "11",
  79.   "normalFontWeightMenu",              "11",
  80.   "boldFontWeightMenu",                "11",
  81.   "bolderFontWeightMenu",              "11",
  82.   "lighterFontWeightMenu",             "11",
  83.   "inheritFontWeightMenu",             "10",
  84.   "fontStyleMenulist",                 "11",
  85.   "unspecifiedFontStyleMenu",          "11",
  86.   "italicFontStyleMenu",               "11",
  87.   "obliqueFontStyleMenu",              "11",
  88.   "inheritFontStyleMenu",              "10",
  89.   "textTransformMenulist",             "11",
  90.   "unspecifiedTextTransformMenu",      "11",
  91.   "noneTextTransformMenu",             "11",
  92.   "lowercaseTextTransformMenu",        "11",
  93.   "uppercaseTextTransformMenu",        "11",
  94.   "capitalizeTextTransformMenu",       "11",
  95.   "inheritTextTransformMenu",          "10",
  96.   "textAlignMenulist",                 "11",
  97.   "unspecifiedTextAlignMenu",          "11",
  98.   "leftTextAlignMenu",                 "11",
  99.   "rightTextAlignMenu",                "11",
  100.   "centerTextAlignMenu",               "11",
  101.   "justifyTextAlignMenu",              "11",
  102.   "overlineTextDecorationCheckbox",    "11",
  103.   "noneTextDecorationCheckbox",        "11",
  104.   "linethroughTextDecorationCheckbox", "11",
  105.   "underlineTextDecorationCheckbox",   "11",
  106.   "blinkTextDecorationCheckbox",       "11",
  107.   "backgroundColorInput",              "11",
  108.   "backgroundcolorButton",             "11",
  109.   "backgroundCW",                      "11",
  110.   "opacityScrollbar",                  "00",
  111.   "opacityLabel",                      "00",
  112.   "backgroundImageInput",              "11",
  113.   "backgroundRepeatLabel",             "11",
  114.   "backgroundRepeatMenulist",          "11",
  115.   "norepeatBackgroundRepeatMenu",      "11",
  116.   "horizontallyBackgroundRepeatMenu",  "11",
  117.   "verticallyBackgroundRepeatMenu",    "11",
  118.   "repeatBackgroundRepeatMenu",        "11",
  119.   "backgroundAttachmentCheckbox",      "11",
  120.   "backgroundPositionLabel",           "11",
  121.   "xBackgroundPositionRadiogroup",     "11",
  122.   "leftXBackgroundPositionRadio",      "11",
  123.   "centerXBackgroundPositionRadio",    "11",
  124.   "rightXBackgroundPositionRadio",     "11",
  125.   "yBackgroundPositionRadiogroup",     "11",
  126.   "topYBackgroundPositionRadio",       "11",
  127.   "centerYBackgroundPositionRadio",    "11",
  128.   "bottomYBackgroundPositionRadio",    "11",
  129.   "topBorderStyleMenulist",            "11",
  130.   "unspecifiedtopBorderStyle",         "11",
  131.   "nonetopBorderStyle",                "11",
  132.   "hiddentopBorderStyle",              "10",
  133.   "solidtopBorderStyle",               "11",
  134.   "dottedtopBorderStyle",              "11",
  135.   "dashedtopBorderStyle",              "11",
  136.   "doubletopBorderStyle",              "11",
  137.   "groovetopBorderStyle",              "11",
  138.   "ridgetopBorderStyle",               "11",
  139.   "insettopBorderStyle",               "11",
  140.   "outsettopBorderStyle",              "11",
  141.   "topBorderWidthInput",               "11",
  142.   "topBorderColorInput",               "11",
  143.   "topBorderColorButton",              "11",
  144.   "bordertopCW",                       "11",
  145.   "leftBorderStyleMenulist",           "11",
  146.   "unspecifiedleftBorderStyle",        "11",
  147.   "noneleftBorderStyle",               "11",
  148.   "hiddenleftBorderStyle",             "10",
  149.   "solidleftBorderStyle",              "11",
  150.   "dottedleftBorderStyle",             "11",
  151.   "dashedleftBorderStyle",             "11",
  152.   "doubleleftBorderStyle",             "11",
  153.   "grooveleftBorderStyle",             "11",
  154.   "ridgeleftBorderStyle",              "11",
  155.   "insetleftBorderStyle",              "11",
  156.   "outsetleftBorderStyle",             "11",
  157.   "leftBorderWidthInput",              "11",
  158.   "leftBorderColorInput",              "11",
  159.   "leftBorderColorButton",             "11",
  160.   "borderleftCW",                      "11",
  161.   "rightBorderStyleMenulist",          "11",
  162.   "unspecifiedrightBorderStyle",       "11",
  163.   "nonerightBorderStyle",              "11",
  164.   "hiddenrightBorderStyle",            "10",
  165.   "solidrightBorderStyle",             "11",
  166.   "dottedrightBorderStyle",            "11",
  167.   "dashedrightBorderStyle",            "11",
  168.   "doublerightBorderStyle",            "11",
  169.   "grooverightBorderStyle",            "11",
  170.   "ridgerightBorderStyle",             "11",
  171.   "insetrightBorderStyle",             "11",
  172.   "outsetrightBorderStyle",            "11",
  173.   "rightBorderWidthInput",             "11",
  174.   "rightBorderColorInput",             "11",
  175.   "rightBorderColorButton",            "11",
  176.   "borderrightCW",                     "11",
  177.   "bottomBorderStyleMenulist",         "11",
  178.   "unspecifiedbottomBorderStyle",      "11",
  179.   "nonebottomBorderStyle",             "10",
  180.   "hiddenbottomBorderStyle",           "11",
  181.   "solidbottomBorderStyle",            "11",
  182.   "dottedbottomBorderStyle",           "11",
  183.   "dashedbottomBorderStyle",           "11",
  184.   "doublebottomBorderStyle",           "11",
  185.   "groovebottomBorderStyle",           "11",
  186.   "ridgebottomBorderStyle",            "11",
  187.   "insetbottomBorderStyle",            "11",
  188.   "outsetbottomBorderStyle",           "11",
  189.   "bottomBorderWidthInput",            "11",
  190.   "bottomBorderColorInput",            "11",
  191.   "bottomBorderColorButton",           "11",
  192.   "borderbottomCW",                    "11",
  193.   "displayMenulist",                   "11",
  194.   "unspecifiedDisplayMenuitem",        "11",
  195.   "noneDisplayMenuitem",               "11",
  196.   "inlineDisplayMenuitem",             "11",
  197.   "blockDisplayMenuitem",              "11",
  198.   "runinDisplayMenuitem",              "10",
  199.   "compactDisplayMenuitem",            "10",
  200.   "listitemDisplayMenuitem",           "11",
  201.   "tableDisplayMenuitem",              "10",
  202.   "tablerowDisplayMenuitem",           "10",
  203.   "tablecellDisplayMenuitem",          "10",
  204.   "tablecaptionDisplayMenuitem",       "10",
  205.   "inlinetableDisplayMenuitem",        "10",
  206.   "tablecolumnDisplayMenuitem",        "10",
  207.   "tablerowgroupDisplayMenuitem",      "10",
  208.   "tableheadergroupDisplayMenuitem",   "10",
  209.   "tablefootergroupDisplayMenuitem",   "10",
  210.   "tablecolumngroupDisplayMenuitem",   "10",
  211.   "visibilityMenulist",                "10",
  212.   "unspecifiedVisibilityMenuitem",     "10",
  213.   "visibleVisibilityMenuitem",         "10",
  214.   "hiddenVisibilityMenuitem",          "10",
  215.   "collapseVisibilityMenuitem",        "10",
  216.   "floatMenulist",                     "11",
  217.   "unspecifiedFloatMenuitem",          "11",
  218.   "leftFloatMenuitem",                 "11",
  219.   "rightFloatMenuitem",                "11",
  220.   "noneFloatMenuitem",                 "11",
  221.   "clearMenulist",                     "11",
  222.   "unspecifiedClearMenuitem",          "11",
  223.   "noneClearMenuitem",                 "11",
  224.   "leftClearMenuitem",                 "11",
  225.   "rightClearMenuitem",                "11",
  226.   "bothClearMenuitem",                 "11",
  227.   "positionMenulist",                  "10",
  228.   "unspecifiedPositionMenuitem",       "10",
  229.   "staticPositionMenuitem",            "10",
  230.   "fixedPositionMenuitem",             "10",
  231.   "absolutePositionMenuitem",          "10",
  232.   "relativePositionMenuitem",          "10",
  233.   "overflowMenulist",                  "10",
  234.   "unspecifiedOverflowMenuitem",       "10",
  235.   "visibleOverflowMenuitem",           "10",
  236.   "hiddenOverflowMenuitem",            "10",
  237.   "scrollOverflowMenuitem",            "10",
  238.   "autoOverflowMenuitem",              "10",
  239.   "zindexInput",                       "10",
  240.   "widthEditableMenulist",             "11",
  241.   "heightEditableMenulist",            "11",
  242.   "minwidthEditableMenulist",          "10",
  243.   "minheightEditableMenulist",         "10",
  244.   "maxwidthEditableMenulist",          "10",
  245.   "maxheightEditableMenulist",         "10",
  246.   "margintopEditableMenulist",         "11",
  247.   "paddingtopEditableMenulist",        "11",
  248.   "topEditableMenulist",               "10",
  249.   "marginleftEditableMenulist",        "11",
  250.   "paddingleftEditableMenulist",       "11",
  251.   "leftEditableMenulist",              "10",
  252.   "marginrightEditableMenulist",       "11",
  253.   "paddingrightEditableMenulist",      "11",
  254.   "rightEditableMenulist",             "10",
  255.   "marginbottomEditableMenulist",      "11",
  256.   "paddingbottomEditableMenulist",     "11",
  257.   "bottomEditableMenulist",            "10",
  258.   "volumeScrollbar",                   "10",
  259.   "volumeMenulist",                    "10",
  260.   "muteVolumeCheckbox",                "10",
  261.   "speakMenulist",                     "10",
  262.   "unspecifiedSpeakMenu",              "10",
  263.   "noneSpeakMenu",                     "10",
  264.   "normalSpeakMenu",                   "10",
  265.   "spelloutSpeakMenu",                 "10",
  266.   "speechRateMenulist",                "10",
  267.   "unspecifiedSpeechRateMenu",         "10",
  268.   "slowerSpeechRateMenu",              "10",
  269.   "fasterSpeechRateMenu",              "10",
  270.   "xslowSpeechRateMenu",               "10",
  271.   "slowSpeechRateMenu",                "10",
  272.   "mediumSpeechRateMenu",              "10",
  273.   "fastSpeechRateMenu",                "10",
  274.   "xfastSpeechRateMenu",               "10",
  275.   "cueBeforeInput",                    "10",
  276.   "cueAfterInput",                     "10",
  277.   ""
  278. ];
  279.  
  280.